<template>
  <div class="video">
    <!-- 热门直播 -->
    <div class="top_video">
      <img src="https://z3.ax1x.com/2021/07/19/WJvqsS.png" />
    </div>
    <!-- 近期热门 -->
    <div class="hot_door">
      <h2 class="main_head">
        近期热门
        <span class="more">更多</span>
      </h2>
      <van-grid :border="false">
        <van-grid-item>
          <div class="hot_img">
            <img src="https://z3.ax1x.com/2021/07/19/WYSJ2t.png" />
          </div>
          <div class="hot_title">
            <p>好“孕”来|如何正确应对生育难题？</p>
            <div class="doctor_instr">
              <div class="doctor_img">
                <img src="https://z3.ax1x.com/2021/07/17/Wlx11g.png" />
              </div>
              <h2 class="doctor_name">
                韩风梅
                <span class="zhiye">主治医师</span>
              </h2>
            </div>
          </div>
        </van-grid-item>
      </van-grid>
    </div>
    <!-- 可回看 -->
    <div class="backlook">
      <h2 class="main_head">可回看</h2>
      <div class="back_top">
        <ul>
          <li class="active">全部</li>
          <li>疾病健康</li>
          <li>科学育儿</li>
          <li>安心孕产</li>
        </ul>
      </div>
      <div class="back_look">
        <van-grid :border="false">
          <van-grid-item>
            <div class="hot_img">
              <img src="https://z3.ax1x.com/2021/07/19/WYSJ2t.png" />
            </div>
            <div class="hot_title">
              <p>如何预防与早期发现胃癌</p>
              <div class="doctor_instr">
                <div class="doctor_img">
                  <img src="https://z3.ax1x.com/2021/07/17/Wlx11g.png" />
                </div>
                <h2 class="doctor_name">
                  韩风梅
                  <span class="zhiye">主治医师</span>
                </h2>
              </div>
            </div>
          </van-grid-item>
          <van-grid-item>
            <div class="hot_img">
              <img src="https://z3.ax1x.com/2021/07/19/WYSJ2t.png" />
            </div>
            <div class="hot_title">
              <p>妇幼健康大课堂第23期ddddddddddddd</p>
              <div class="doctor_instr">
                <div class="doctor_img">
                  <img src="https://z3.ax1x.com/2021/07/17/Wlx11g.png" />
                </div>
                <h2 class="doctor_name">
                  韩风梅
                  <span class="zhiye">主治医师</span>
                </h2>
              </div>
            </div>
          </van-grid-item>
        </van-grid>
      </div>
    </div>
  </div>
</template>
<style lang="less" scoped>
.video {
  background: #fff;
  .top_video {
    width: 100%;
    padding: 10px;
    img {
      width: 100%;
    }
  }
  :deep(.hot_door) {
    .main_head {
      width: 96%;
      height: 40px;
      font-size: 24px;
      font-weight: 600;
      color: #000000;
      line-height: 36px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 10px;
      .more {
        width: 42px;
        font-size: 14px;
        font-weight: 500;
        color: #999ea7;
        position: relative;
        &::after {
          content: "";
          width: 12px;
          height: 12px;
          position: absolute;
          right: 0;
          transform: translateY(86%);
          background: url(https://z3.ax1x.com/2021/07/18/W8NDHO.png);
          background-size: 100% 100%;
        }
      }
    }
    .van-grid {
      flex-wrap: nowrap;
    }
    .hot_img {
      width: 234px;
      height: 131px;
      img {
        width: 100%;
      }
    }
    .hot_title {
      p {
        height: 14px;
        font-size: 14px;
        font-weight: bold;
        color: #333333;
        line-height: 28px;
      }
    }
    .doctor_instr {
      display: flex;
      margin-top: 15px;
    }
    .doctor_img {
      width: 27px;
      height: 27px;
      border-radius: 50%;
      img {
        width: 100%;
      }
    }
    .doctor_name {
      line-height: 27px;
      font-size: 14px;
      color: #999999;
      span {
        margin-left: 10px;
      }
    }
  }
  // 可回看的样式
  :deep(.backlook) {
    padding-top: 18px;
    .back_top {
      ul {
        display: flex;
        justify-content: space-between;
        margin-top: 16px;
        padding: 0 10px;
      }
      li {
        height: 32px;
        line-height: 32px;
        background: #f8f9fd;
        border-radius: 32px;
        color: #333333;
        font-size: 14px;
        padding: 0 16px;
        font-weight: 900;
      }
      .active {
        background: #eff8ff;
        color: #1c95fb;
      }
    }
    .main_head {
      padding: 0 10px;
    }
    .van-grid {
      padding: 10px 5px 0;
    }
    .van-grid-item {
      flex-basis: 50% !important;
      padding-bottom: 15px;
    }
    .van-grid-item__content {
      padding: 0 5px;
    }
    .hot_img {
      width: 100%;
      height: 94px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .hot_title {
      p {
        width: 160px;
        height: 28px;
        line-height: 28px;
        font-size: 14px;
        font-weight: bold;
        color: #333333;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }
    .doctor_instr {
      display: flex;
      // margin-top: 15px;
    }
    .doctor_img {
      width: 27px;
      height: 27px;
      border-radius: 50%;
      img {
        width: 100%;
      }
    }
    .doctor_name {
      line-height: 27px;
      font-size: 14px;
      color: #999999;
      span {
        margin-left: 10px;
      }
    }
  }
}
</style>
